﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Skynet.WebSite.Demos
{
    public partial class HttpModuleLoader : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            IAsyncResult result = HttpContext.Current.Items["usp_busyprocess"] as IAsyncResult;
            var cmd = HttpContext.Current.Items["usp_busyprocess_command"] as System.Data.SqlClient.SqlCommand;
            var reader = cmd.EndExecuteReader(result);
            this.GridView1.DataSource = reader;
            this.GridView1.DataBind();
        }
    }
}